﻿package Cain.game.clickFun.clickMc 
{
	import Cain.Bit.Bit;
	import flash.events.Event;
	
	/**
	 * 拋物線
	 * @author Cain
	 */
	public class StoneMC extends Bit
	{
		/**
		 * 拋物線
		 * @param	_name 視覺元件
		 * @param	_g 重力
		 */
		public function StoneMC(_name:String,_g:Number = 1) 
		{
			super(_name, 1,1, 150, _g);
			addEventListener(Event.ADDED_TO_STAGE,addThis);
		}
		
		private function addThis(e:Event):void
		{
			removeEventListener(Event.ADDED_TO_STAGE,addThis);
			addEventListener(Event.REMOVED_FROM_STAGE, removeThis);
			init();
		}
		
		private function init():void
		{
			
		}
		
		private function removeThis(e:Event):void 
		{
			removeEventListener(Event.REMOVED_FROM_STAGE,removeThis);
		}
		
	}

}